package com.dream.tihai.struct;

import com.dream.tihai.dto.FileScanDto;
import com.dream.tihai.entity.FileEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Valley
 * Created by Valley on 2022/12/13
 */
@Mapper
public interface FileStruct {

    FileStruct INSTANCE = Mappers.getMapper(FileStruct.class);


    FileScanDto fileScanDto(FileEntity entity);

    List<FileScanDto> fileScanDto(List<FileEntity> entities);

}
